package com.fsserver.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 退款实体类
 * Refund Entity
 *
 * @author fsserver
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("refund")
public class Refund extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 退款ID
     * Refund ID
     */
    private Long id;

    /**
     * 退款号
     * Refund number
     */
    private String refundNo;

    /**
     * 订单号
     * Order number
     */
    private String orderNo;

    /**
     * 交易号
     * Transaction number
     */
    private String transactionNo;

    /**
     * 支付类型
     * Payment type
     */
    private String paymentType;

    /**
     * 退款金额
     * Refund amount
     */
    private BigDecimal amount;

    /**
     * 退款币种
     * Refund currency
     */
    private String currency;

    /**
     * 退款状态
     * Refund status
     */
    private String status;

    /**
     * 退款原因
     * Refund reason
     */
    private String reason;

    /**
     * 第三方退款号
     * Third-party refund number
     */
    private String thirdPartyRefundNo;

    /**
     * 第三方退款状态
     * Third-party refund status
     */
    private String thirdPartyRefundStatus;

    /**
     * 第三方退款数据
     * Third-party refund data
     */
    private String thirdPartyRefundData;

    /**
     * 用户ID
     * User ID
     */
    private Long userId;

    /**
     * 用户名称
     * User name
     */
    private String userName;

    /**
     * 用户IP
     * User IP
     */
    private String userIp;

    /**
     * 退款时间
     * Refund time
     */
    private Date refundTime;

    /**
     * 备注
     * Remarks
     */
    private String remarks;
} 